﻿using System.Collections.Generic;
using UnityEngine;

namespace BlockBreak
{
    public class Block : MonoBehaviour
    {
        public int Score;
        public int Damage;

        //void OnTriggerEnter2D(Collider2D col)
        //{
        //    var ball = col.gameObject.GetComponent<Ball>();
        //    if (ball)
        //    {
        //        Damage = ball.Power;
        //        ball.Target = this.transform;
        //    }
        //}
    }

    //void OnCollisionEnter2D(Collision2D collision)
    //{
    //    CollisionNormal = collision.contacts[0].normal;
    //    Value = true;
    //    if (SelfType == ColliderType.Ball)
    //    {
    //        var collider = collision.gameObject.GetComponent<Collider>();
    //        if (collider)
    //        {
    //            ColliderType = collider.SelfType;
    //        }
    //        else
    //        {
    //            ColliderType = ColliderType.Null;
    //        }
    //        var block = collision.gameObject.GetComponent<Block>();
    //        if (block)
    //        {
    //            var ball = gameObject.GetComponent<Ball>();
    //            block.Damage = ball.Power;
    //        }
    //    }
    //}

   
}
